<?php

interface ITopicDao {

	function fetchOfferedTopics($userId);
	
	function fetchNeededTopics($userId);

	/**
	 * Insert OfferedTopic.
	 *
	 * @param int $userId
	 * @param String $title
	 * @param time $created
	 * @param int $offeredCategoryId
	 * @return OfferedTopic
	 */
	function insertOfferedTopic($userId, $title, $created, $offeredCategoryId);

	/**
	 * Insert OfferedTopic.
	 *
	 * @param int $userId
	 * @param String $title
	 * @param time $created
	 * @param int $neededCategoryId
	 * @return NeededTopic
	 */
	function insertNeededTopic($userId, $title, $created, $neededCategoryId);
}

?>